The Contents command in the Save menu scans through the document looking for Chapters and (optionally) Sections. It generates a page numbered text file which can be saved into the originating document or a separate document or Edit file if required.
There are three Radio icons that control Section entries.
A tab character will be inserted between the title and page number.
If the Tab levels option icon is checked another tab will be inserted for each level of nesting.
Note - if you save the contents into the body of a document the page number references may change. To overcome this problem save the contents a second time.